#!/bin/sh

chown 1000 var/www/cgi-bin/od.cgi
chmod 0770 var/www/cgi-bin/od.cgi
chown 1000 var/www/*
chmod 755 home
chown 1000 home/admin
chmod 700 home/admin
chown 1001 home/user
chmod 700 home/user

chown 1000 var/pkg/
chown 1000 var/pkg/installed
chown 1000 usr/bin
chown 1000 usr/lib

chown 1000:1000 etc/opendomo/i18n/lang
chown 0:1000 sbin/pkg_*
chown root:root etc/init.d/*

chown 1000:1000 etc/opendomo/zones

chown 1000 usr/local/opendomo/*.sh

chown 1000:1000 usr/local/opendomo/services -R

chmod 0775 -R etc/opendomo/states
chown 1000:1000 -R etc/opendomo/states

chown 1000:1000 usr/share

chown 1000:1000 etc/opendomo/root/config/*

chown 1000 etc/opendomo/repositories.cfg

chmod +x etc/init.d/*

chmod 555 bin/groups

chmod u+w var/www/

chmod -R 775 var/pkg


chmod 770 var/log
chgrp 1000 var/log


chmod 777 var/run
chgrp 1000 var/run

chown 1000 var/pkg/
chown 1000 var/pkg/installed

chmod 444 etc/archs


chown 1000 usr/bin
chown 1000 usr/lib

chmod g+w etc/init.d
chgrp 1000 etc/init.d

chmod g+w etc/inetd.d
chgrp 1000 etc/inetd.d

chmod g+w etc/crond.d
chgrp 1000 etc/crond.d

chmod g+w etc/udev/rules.d
chgrp 1000 etc/udev/rules.d




chmod g+w etc/opendomo/i18n/lang
chown 1000:1000 etc/opendomo/i18n/lang

chmod g+w etc/opendomo/


chown 0:1000 sbin/pkg_*


chmod 777 tmp
chmod +t tmp

chown root:root etc/init.d/*
chmod 500 etc/init.d/*
chgrp 1000 etc/init.d/rcS
chmod 0750 etc/init.d/rcS



chown 1000:1000 etc/opendomo/zones

chown 1000 usr/local/opendomo/*.sh
chgrp 1000 usr/local/opendomo/*.sh
chmod 750 usr/local/opendomo/*.sh


chmod 0775 -R usr/local/opendomo/services
chown 1000:1000 usr/local/opendomo/services -R


chmod 0775 -R etc/opendomo/states
chown 1000:1000 -R etc/opendomo/states

chown 1000:1000 usr/share

chown 1000:1000 etc/opendomo/root/config/*
chmod o-wx -R etc/opendomo/root/config/*

chmod 4755 usr/bin/sudo
chmod 4755 bin/busybox

